package cn.wolfcode.wms.mapper;

import cn.wolfcode.wms.domain.Employee;
import cn.wolfcode.wms.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    int queryForCount(QueryObject qo);

    List<?> queryForList(QueryObject qo);

    void deleteRelation(Long id);

    void insertRelation(@Param("empId") Long empId, @Param("rId") Long rId);

    Employee selectByUsername(String name);

    void batchDelete(Long[] ids);
}